<script setup>
import { computed, ref } from 'vue';
import WxOrd from './child/WxOrd/WxOrd.vue'
import WbOrd from './child/WbOrd/WbOrd.vue'

const tabVal = ref(0)

const component = computed(() => [WxOrd, WbOrd][tabVal.value])
</script>

<template>
  <div>
    <a-radio-group v-model:value="tabVal" button-style="solid" style="margin-bottom: 20px;">
      <a-radio-button :value="0">维修工单</a-radio-button>
      <a-radio-button :value="1">维保工单</a-radio-button>
    </a-radio-group>
    <component :is="component" />
  </div>
</template>